package in.unlocker.apps.unlock.v1.rs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
@Path("ping")
public class PingResource
{
	private final static Logger LOGGER = LoggerFactory.getLogger(PingResource.class);

	@GET
	public Response ping()
	{
		LOGGER.info("ping");
		return Response.status(200).entity("pong").build();
	}

}
